FROM alpine:latest

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk add --no-cache openvpn iptables openssl curl && \
echo "tun" >> /etc/modules-load.d/tun.conf && \
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/ipv4.conf

COPY start.sh ./

CMD ./start.sh
